/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-30 10:08:47
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-30 11:08:10
 */
import { newListItem, TypeNewListAction } from '../actions/newList'

const initNewList: newListItem[] = []
export default function newList(
  state = initNewList,
  action: TypeNewListAction
) {
  switch (action.type) {
    case 'article/getArticleList':
      return action.payload
    default:
      return state
  }
}
